package edu.gdkm;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class Cat {
    private String name;
    private String color="白";
    public Cat(){
        System.out.println("构造方法");
    }
    public void initCat(){
        System.out.println("初始化对象");
    }
    public void destroyCat(){
        System.out.println("销毁对象");
    }
}
